3.39 \(\int \frac{d+e x+f x^2+g x^3+h x^4}{(a+b x^2+c x^4)^2} \, dx\)

Optimal. Leaf size=439 \[ \frac{x \left (x^2 (a b h-2 a c f+b c d)-a b f-2 a (c d-a h)+b^2 d\right )}{2 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right ) \left (\frac{b^2 (c d-a h)+4 a b c f-4 a c (a h+3 c d)}{\sqrt{b^2-4 a c}}+a b h-2 a c f+b c d\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right ) \left (-\frac{b^2 (c d-a h)+4 a b c f-4 a c (a h+3 c d)}{\sqrt{b^2-4 a c}}+a b h-2 a c f+b c d\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{\sqrt{b^2-4 a c}+b}}-\frac{-2 a g+x^2 (2 c e-b g)+b e}{2 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{(2 c e-b g) \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{3/2}} \]

[Out]

-(b*e - 2*a*g + (2*c*e - b*g)*x^2)/(2*(b^2 - 4*a*c)*(a + b*x^2 + c*x^4)) + (x*(b^2*d - a*b*f - 2*a*(c*d - a*h)
 + (b*c*d - 2*a*c*f + a*b*h)*x^2))/(2*a*(b^2 - 4*a*c)*(a + b*x^2 + c*x^4)) + ((b*c*d - 2*a*c*f + a*b*h + (4*a*
b*c*f + b^2*(c*d - a*h) - 4*a*c*(3*c*d + a*h))/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2
 - 4*a*c]]])/(2*Sqrt[2]*a*Sqrt[c]*(b^2 - 4*a*c)*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + ((b*c*d - 2*a*c*f + a*b*h - (4*
a*b*c*f + b^2*(c*d - a*h) - 4*a*c*(3*c*d + a*h))/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b
^2 - 4*a*c]]])/(2*Sqrt[2]*a*Sqrt[c]*(b^2 - 4*a*c)*Sqrt[b + Sqrt[b^2 - 4*a*c]]) + ((2*c*e - b*g)*ArcTanh[(b + 2
*c*x^2)/Sqrt[b^2 - 4*a*c]])/(b^2 - 4*a*c)^(3/2)

________________________________________________________________________________________

Rubi [A]  time = 1.89438, antiderivative size = 439, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 8, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.229, Rules used = {1673, 1678, 1166, 205, 1247, 638, 618, 206} \[ \frac{x \left (x^2 (a b h-2 a c f+b c d)-a b f-2 a (c d-a h)+b^2 d\right )}{2 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right ) \left (\frac{b^2 (c d-a h)+4 a b c f-4 a c (a h+3 c d)}{\sqrt{b^2-4 a c}}+a b h-2 a c f+b c d\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right ) \left (-\frac{b^2 (c d-a h)+4 a b c f-4 a c (a h+3 c d)}{\sqrt{b^2-4 a c}}+a b h-2 a c f+b c d\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{\sqrt{b^2-4 a c}+b}}-\frac{-2 a g+x^2 (2 c e-b g)+b e}{2 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{(2 c e-b g) \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{3/2}} \]

Antiderivative was successfully verified.

[In]

Int[(d + e*x + f*x^2 + g*x^3 + h*x^4)/(a + b*x^2 + c*x^4)^2,x]

[Out]

-(b*e - 2*a*g + (2*c*e - b*g)*x^2)/(2*(b^2 - 4*a*c)*(a + b*x^2 + c*x^4)) + (x*(b^2*d - a*b*f - 2*a*(c*d - a*h)
 + (b*c*d - 2*a*c*f + a*b*h)*x^2))/(2*a*(b^2 - 4*a*c)*(a + b*x^2 + c*x^4)) + ((b*c*d - 2*a*c*f + a*b*h + (4*a*
b*c*f + b^2*(c*d - a*h) - 4*a*c*(3*c*d + a*h))/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2
 - 4*a*c]]])/(2*Sqrt[2]*a*Sqrt[c]*(b^2 - 4*a*c)*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + ((b*c*d - 2*a*c*f + a*b*h - (4*
a*b*c*f + b^2*(c*d - a*h) - 4*a*c*(3*c*d + a*h))/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b
^2 - 4*a*c]]])/(2*Sqrt[2]*a*Sqrt[c]*(b^2 - 4*a*c)*Sqrt[b + Sqrt[b^2 - 4*a*c]]) + ((2*c*e - b*g)*ArcTanh[(b + 2
*c*x^2)/Sqrt[b^2 - 4*a*c]])/(b^2 - 4*a*c)^(3/2)

Rule 1673

Int[(Pq_)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Module[{q = Expon[Pq, x], k}, Int[Sum[Coeff[
Pq, x, 2*k]*x^(2*k), {k, 0, q/2}]*(a + b*x^2 + c*x^4)^p, x] + Int[x*Sum[Coeff[Pq, x, 2*k + 1]*x^(2*k), {k, 0,
(q - 1)/2}]*(a + b*x^2 + c*x^4)^p, x]] /; FreeQ[{a, b, c, p}, x] && PolyQ[Pq, x] &&  !PolyQ[Pq, x^2]

Rule 1678

Int[(Pq_)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> With[{d = Coeff[PolynomialRemainder[Pq, a +
b*x^2 + c*x^4, x], x, 0], e = Coeff[PolynomialRemainder[Pq, a + b*x^2 + c*x^4, x], x, 2]}, Simp[(x*(a + b*x^2
+ c*x^4)^(p + 1)*(a*b*e - d*(b^2 - 2*a*c) - c*(b*d - 2*a*e)*x^2))/(2*a*(p + 1)*(b^2 - 4*a*c)), x] + Dist[1/(2*
a*(p + 1)*(b^2 - 4*a*c)), Int[(a + b*x^2 + c*x^4)^(p + 1)*ExpandToSum[2*a*(p + 1)*(b^2 - 4*a*c)*PolynomialQuot
ient[Pq, a + b*x^2 + c*x^4, x] + b^2*d*(2*p + 3) - 2*a*c*d*(4*p + 5) - a*b*e + c*(4*p + 7)*(b*d - 2*a*e)*x^2,
x], x], x]] /; FreeQ[{a, b, c}, x] && PolyQ[Pq, x^2] && Expon[Pq, x^2] > 1 && NeQ[b^2 - 4*a*c, 0] && LtQ[p, -1
]

Rule 1166

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 1247

Int[(x_)*((d_) + (e_.)*(x_)^2)^(q_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_.), x_Symbol] :> Dist[1/2, Subst[
Int[(d + e*x)^q*(a + b*x + c*x^2)^p, x], x, x^2], x] /; FreeQ[{a, b, c, d, e, p, q}, x]

Rule 638

Int[((d_.) + (e_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[((b*d - 2*a*e + (2*c*d -
b*e)*x)*(a + b*x + c*x^2)^(p + 1))/((p + 1)*(b^2 - 4*a*c)), x] - Dist[((2*p + 3)*(2*c*d - b*e))/((p + 1)*(b^2
- 4*a*c)), Int[(a + b*x + c*x^2)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[2*c*d - b*e, 0] && NeQ[b^
2 - 4*a*c, 0] && LtQ[p, -1] && NeQ[p, -3/2]

Rule 618

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{d+e x+f x^2+g x^3+h x^4}{\left (a+b x^2+c x^4\right )^2} \, dx &=\int \frac{x \left (e+g x^2\right )}{\left (a+b x^2+c x^4\right )^2} \, dx+\int \frac{d+f x^2+h x^4}{\left (a+b x^2+c x^4\right )^2} \, dx\\ &=\frac{x \left (b^2 d-a b f-2 a (c d-a h)+(b c d-2 a c f+a b h) x^2\right )}{2 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{1}{2} \operatorname{Subst}\left (\int \frac{e+g x}{\left (a+b x+c x^2\right )^2} \, dx,x,x^2\right )-\frac{\int \frac{-b^2 d-a b f+2 a (3 c d+a h)+(-b c d+2 a c f-a b h) x^2}{a+b x^2+c x^4} \, dx}{2 a \left (b^2-4 a c\right )}\\ &=-\frac{b e-2 a g+(2 c e-b g) x^2}{2 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{x \left (b^2 d-a b f-2 a (c d-a h)+(b c d-2 a c f+a b h) x^2\right )}{2 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac{(2 c e-b g) \operatorname{Subst}\left (\int \frac{1}{a+b x+c x^2} \, dx,x,x^2\right )}{2 \left (b^2-4 a c\right )}+\frac{\left (b c d-2 a c f+a b h-\frac{4 a b c f+b^2 (c d-a h)-4 a c (3 c d+a h)}{\sqrt{b^2-4 a c}}\right ) \int \frac{1}{\frac{b}{2}+\frac{1}{2} \sqrt{b^2-4 a c}+c x^2} \, dx}{4 a \left (b^2-4 a c\right )}+\frac{\left (b c d-2 a c f+a b h+\frac{4 a b c f+b^2 (c d-a h)-4 a c (3 c d+a h)}{\sqrt{b^2-4 a c}}\right ) \int \frac{1}{\frac{b}{2}-\frac{1}{2} \sqrt{b^2-4 a c}+c x^2} \, dx}{4 a \left (b^2-4 a c\right )}\\ &=-\frac{b e-2 a g+(2 c e-b g) x^2}{2 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{x \left (b^2 d-a b f-2 a (c d-a h)+(b c d-2 a c f+a b h) x^2\right )}{2 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{\left (b c d-2 a c f+a b h+\frac{4 a b c f+b^2 (c d-a h)-4 a c (3 c d+a h)}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\left (b c d-2 a c f+a b h-\frac{4 a b c f+b^2 (c d-a h)-4 a c (3 c d+a h)}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b+\sqrt{b^2-4 a c}}}\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{b+\sqrt{b^2-4 a c}}}+\frac{(2 c e-b g) \operatorname{Subst}\left (\int \frac{1}{b^2-4 a c-x^2} \, dx,x,b+2 c x^2\right )}{b^2-4 a c}\\ &=-\frac{b e-2 a g+(2 c e-b g) x^2}{2 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{x \left (b^2 d-a b f-2 a (c d-a h)+(b c d-2 a c f+a b h) x^2\right )}{2 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{\left (b c d-2 a c f+a b h+\frac{4 a b c f+b^2 (c d-a h)-4 a c (3 c d+a h)}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\left (b c d-2 a c f+a b h-\frac{4 a b c f+b^2 (c d-a h)-4 a c (3 c d+a h)}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b+\sqrt{b^2-4 a c}}}\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{b+\sqrt{b^2-4 a c}}}+\frac{(2 c e-b g) \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{3/2}}\\ \end{align*}

Mathematica [A]  time = 2.24061, size = 489, normalized size = 1.11 \[ \frac{1}{4} \left (\frac{-4 a^2 (g+h x)+2 a b (e+x (f-x (g+h x)))+4 a c x (d+x (e+f x))-2 b d x \left (b+c x^2\right )}{a \left (4 a c-b^2\right ) \left (a+b x^2+c x^4\right )}+\frac{\sqrt{2} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right ) \left (b \left (c d \sqrt{b^2-4 a c}+a h \sqrt{b^2-4 a c}+4 a c f\right )-2 a c \left (f \sqrt{b^2-4 a c}+2 a h+6 c d\right )+b^2 (c d-a h)\right )}{a \sqrt{c} \left (b^2-4 a c\right )^{3/2} \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\sqrt{2} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right ) \left (b \left (c d \sqrt{b^2-4 a c}+a h \sqrt{b^2-4 a c}-4 a c f\right )+2 a c \left (-f \sqrt{b^2-4 a c}+2 a h+6 c d\right )+b^2 (a h-c d)\right )}{a \sqrt{c} \left (b^2-4 a c\right )^{3/2} \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{2 (b g-2 c e) \log \left (\sqrt{b^2-4 a c}-b-2 c x^2\right )}{\left (b^2-4 a c\right )^{3/2}}-\frac{2 (b g-2 c e) \log \left (\sqrt{b^2-4 a c}+b+2 c x^2\right )}{\left (b^2-4 a c\right )^{3/2}}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[(d + e*x + f*x^2 + g*x^3 + h*x^4)/(a + b*x^2 + c*x^4)^2,x]

[Out]

((-4*a^2*(g + h*x) - 2*b*d*x*(b + c*x^2) + 4*a*c*x*(d + x*(e + f*x)) + 2*a*b*(e + x*(f - x*(g + h*x))))/(a*(-b
^2 + 4*a*c)*(a + b*x^2 + c*x^4)) + (Sqrt[2]*(b^2*(c*d - a*h) - 2*a*c*(6*c*d + Sqrt[b^2 - 4*a*c]*f + 2*a*h) + b
*(c*Sqrt[b^2 - 4*a*c]*d + 4*a*c*f + a*Sqrt[b^2 - 4*a*c]*h))*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a
*c]]])/(a*Sqrt[c]*(b^2 - 4*a*c)^(3/2)*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + (Sqrt[2]*(b^2*(-(c*d) + a*h) + 2*a*c*(6*c
*d - Sqrt[b^2 - 4*a*c]*f + 2*a*h) + b*(c*Sqrt[b^2 - 4*a*c]*d - 4*a*c*f + a*Sqrt[b^2 - 4*a*c]*h))*ArcTan[(Sqrt[
2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(a*Sqrt[c]*(b^2 - 4*a*c)^(3/2)*Sqrt[b + Sqrt[b^2 - 4*a*c]]) + (2*(
-2*c*e + b*g)*Log[-b + Sqrt[b^2 - 4*a*c] - 2*c*x^2])/(b^2 - 4*a*c)^(3/2) - (2*(-2*c*e + b*g)*Log[b + Sqrt[b^2
- 4*a*c] + 2*c*x^2])/(b^2 - 4*a*c)^(3/2))/4

________________________________________________________________________________________

Maple [B]  time = 0.049, size = 1801, normalized size = 4.1 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((h*x^4+g*x^3+f*x^2+e*x+d)/(c*x^4+b*x^2+a)^2,x)

[Out]

1/4*c/(4*a*c-b^2)^2/a*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(
1/2))*b^3*d-1/4*c/(4*a*c-b^2)^2/a*2^(1/2)/(((-4*a*c+b^2)^(1/2)-b)*c)^(1/2)*arctanh(c*x*2^(1/2)/(((-4*a*c+b^2)^
(1/2)-b)*c)^(1/2))*b^3*d-c/(4*a*c-b^2)^2*2^(1/2)/(((-4*a*c+b^2)^(1/2)-b)*c)^(1/2)*arctanh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/2)/(((-4*a*c+b^2)^(1/2)-b)*c)^(1/2))*f+1/2*c/(4*a*c-b^2)^2*2^(1/2)/(((-4*a*c+b^2)^(1/2)-b)*
c)^(1/2)*arctanh(c*x*2^(1/2)/(((-4*a*c+b^2)^(1/2)-b)*c)^(1/2))*b^2*f+1/4/(4*a*c-b^2)^2*2^(1/2)/(((-4*a*c+b^2)^
(1/2)-b)*c)^(1/2)*arctanh(c*x*2^(1/2)/(((-4*a*c+b^2)^(1/2)-b)*c)^(1/2))*(-4*a*c+b^2)^(1/2)*b^2*h+1/4/(4*a*c-b^
2)^2*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*(-4*a*c+b^2
)^(1/2)*b^2*h+c/(4*a*c-b^2)^2*(-4*a*c+b^2)^(1/2)*e*ln(2*c*x^2+(-4*a*c+b^2)^(1/2)+b)-c/(4*a*c-b^2)^2*(-4*a*c+b^
2)^(1/2)*e*ln(-2*c*x^2+(-4*a*c+b^2)^(1/2)-b)-1/4/(4*a*c-b^2)^2*2^(1/2)/(((-4*a*c+b^2)^(1/2)-b)*c)^(1/2)*arctan
h(c*x*2^(1/2)/(((-4*a*c+b^2)^(1/2)-b)*c)^(1/2))*b^3*h+1/4/(4*a*c-b^2)^2*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/
2)*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*b^3*h

________________________________________________________________________________________

Maxima [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x^4+g*x^3+f*x^2+e*x+d)/(c*x^4+b*x^2+a)^2,x, algorithm="maxima")

[Out]

Timed out

________________________________________________________________________________________

Fricas [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x^4+g*x^3+f*x^2+e*x+d)/(c*x^4+b*x^2+a)^2,x, algorithm="fricas")

[Out]

Timed out

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x**4+g*x**3+f*x**2+e*x+d)/(c*x**4+b*x**2+a)**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x^4+g*x^3+f*x^2+e*x+d)/(c*x^4+b*x^2+a)^2,x, algorithm="giac")

[Out]

Exception raised: NotImplementedError